<? 
	ob_start(); 
	require("connect.php");
	$ma=$_REQUEST["gvid"];
	$hotendem=$_REQUEST["hotendem"];
	$ten=$_REQUEST["ten"];
	$anh=$_REQUEST["anh"];
	$gioitinh=$_REQUEST["gioitinh"];
	$ngaysinh=$_REQUEST["demol1"];
	$quequan=$_REQUEST["quequan"];	
	$email=$_REQUEST["email"];
	$sodt=$_REQUEST["sodt"];
	$sqldate = strtotime($ngaysinh);
	$date = date('Y-m-d', $sqldate);		
	$sql="update giaovien set hotendem='{$hotendem}', ten='{$ten}', anh='{$anh}', gioitinh='{$gioitinh}', ngaysinh='{$date}', quequan='{$quequan}', email='{$email}', sodt='{$sodt}' where magv='{$ma}'";	
	mysql_query($sql) or die("Error!");		
	mysql_close();
	header("Location:giaovien_admin.php");
	
?>